export default function reducer(state = 1000, action) {
  if (action.type === 'add') {
    return state + action.morey
  }
  if (action.type === 'minus') {
    return state - action.morey
  }
  return state
}
